package test1230pm;

public class Member {

    String name;

    // 难点：思考
    Company company;

    public Member() {
    }

    public Member(String name) {
        this.name = name;
    }

    public Company getCompany() {
        return company;
    }

    public void setCompany(Company company) {
        this.company = company;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Member{" +
                "name='" + name + '\'' +
                ", company=" + company +
                '}';
    }
}
